//
//  Fraction.h
//  
//
//  Created by blue on 16/4/10.
//
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
{
    NSInteger _denominator;
    NSInteger _molecular;
}

-(id)initWithDenominator:(NSInteger)denominator;
-(id)initWithMolecular:(NSInteger)molecular;

-(id)initWithDenominator:(NSInteger)denominator
            andMolecular:(NSInteger)molecular;

//getter方法
-(NSInteger)denominator;
-(NSInteger)molecular;

-(void)addFraction:(Fraction *)aFraction;
-(void)subFraction:(Fraction *)aFraction;


@end
